package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 行政区划对象 sys_region
 * 
 * @author ruoyi
 * @date 2023-08-04
 */
public class SysRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区划编号 */
    private String code;

    /** 父区划编号 */
    @Excel(name = "父区划编号")
    private String parentCode;

    /** 祖区划编号 */
    @Excel(name = "祖区划编号")
    private String ancestors;

    /** 区划名称 */
    @Excel(name = "区划名称")
    private String name;

    /** 省级区划编号 */
    @Excel(name = "省级区划编号")
    private String provinceCode;

    /** 省级名称 */
    @Excel(name = "省级名称")
    private String provinceName;

    /** 市级区划编号 */
    @Excel(name = "市级区划编号")
    private String cityCode;

    /** 市级名称 */
    @Excel(name = "市级名称")
    private String cityName;

    /** 区级区划编号 */
    @Excel(name = "区级区划编号")
    private String districtCode;

    /** 区级名称 */
    @Excel(name = "区级名称")
    private String districtName;

    /** 镇级区划编号 */
    @Excel(name = "镇级区划编号")
    private String townCode;

    /** 镇级名称 */
    @Excel(name = "镇级名称")
    private String townName;

    /** 村级区划编号 */
    @Excel(name = "村级区划编号")
    private String villageCode;

    /** 村级名称 */
    @Excel(name = "村级名称")
    private String villageName;

    /** 层级 */
    @Excel(name = "层级")
    private Long regionLevel;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setProvinceCode(String provinceCode) 
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() 
    {
        return provinceCode;
    }
    public void setProvinceName(String provinceName) 
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName() 
    {
        return provinceName;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }
    public void setDistrictCode(String districtCode) 
    {
        this.districtCode = districtCode;
    }

    public String getDistrictCode() 
    {
        return districtCode;
    }
    public void setDistrictName(String districtName) 
    {
        this.districtName = districtName;
    }

    public String getDistrictName() 
    {
        return districtName;
    }
    public void setTownCode(String townCode) 
    {
        this.townCode = townCode;
    }

    public String getTownCode() 
    {
        return townCode;
    }
    public void setTownName(String townName) 
    {
        this.townName = townName;
    }

    public String getTownName() 
    {
        return townName;
    }
    public void setVillageCode(String villageCode) 
    {
        this.villageCode = villageCode;
    }

    public String getVillageCode() 
    {
        return villageCode;
    }
    public void setVillageName(String villageName) 
    {
        this.villageName = villageName;
    }

    public String getVillageName() 
    {
        return villageName;
    }
    public void setRegionLevel(Long regionLevel) 
    {
        this.regionLevel = regionLevel;
    }

    public Long getRegionLevel() 
    {
        return regionLevel;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("parentCode", getParentCode())
            .append("ancestors", getAncestors())
            .append("name", getName())
            .append("provinceCode", getProvinceCode())
            .append("provinceName", getProvinceName())
            .append("cityCode", getCityCode())
            .append("cityName", getCityName())
            .append("districtCode", getDistrictCode())
            .append("districtName", getDistrictName())
            .append("townCode", getTownCode())
            .append("townName", getTownName())
            .append("villageCode", getVillageCode())
            .append("villageName", getVillageName())
            .append("regionLevel", getRegionLevel())
            .append("sort", getSort())
            .append("remark", getRemark())
            .toString();
    }
}
